package com.android.fitcontrol;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;

import com.android.fitcontrol.common.CommonUtils;
import com.android.fitcontrol.database.DBConnector;

public class SplashScreenActivity extends Activity {

	@Override
	public void onCreate(Bundle bundle) {
		super.onCreate(bundle);
		
		setContentView(R.layout.splash_screen_activity);
		
		Handler splashThread = new Handler();
		final DBConnector dbConnector = new DBConnector(this);
		
		splashThread.postDelayed(new Runnable() {

			public void run() {
				// TODO Auto-generated method stub
				CommonUtils.checkPreloginnedUser(SplashScreenActivity.this, dbConnector);
				dbConnector.close();
			}
			
		}, 2400);
	}
}
